package org.zjsru.service;

import org.zjsru.pojo.Payment;
import org.zjsru.pojo.PaymentRecord;
import java.math.BigDecimal;
import java.util.List;

/**
 * 支付服务接口
 */
public interface PaymentService {
    
    /**
     * 发起支付
     */
    Payment pay(Long orderId, Long userId, String orderNo, BigDecimal amount);
    
    /**
     * 支付回调
     */
    boolean paymentCallback(String paymentNo, String callbackContent);
    
    /**
     * 查询支付记录
     */
    List<PaymentRecord> getPaymentRecordsByOrderId(Long orderId);
    
    /**
     * 查询支付信息
     */
    Payment getPaymentByOrderId(Long orderId);
    
    /**
     * 处理支付超时
     */
    void handlePaymentTimeout(Long paymentId);
} 